package com.crizyit;

public class DataWrap implements Comparable<DataWrap> {

	private Integer num;

	private String str;

	public DataWrap(int num, String str) {
		this.num = num;
		this.str = str;
	}

	@Override
	public String toString() {
		return this.num + this.str;
	}

	@Override
	public int compareTo(DataWrap data) {
		return this.num.compareTo(data.num);
	}

}
